×
Notice
The forum is in read only mode.
Forum
Telephony Cards Support
A400/800/1200 Series
opvxa1200 driver problem
×
Questions about A400/800/1200 Analog Interface Card
opvxa1200 driver problem
15 years 4 months ago #2465
by james.zhu
hello,
it can be used. it should be no problem.
regards!
James.zhu
15 years 4 months ago #2466
by miaolin
BUG: soft lockup - CPU#0 stuck for 10s! [modprobe]
You meet a linux bug report. linux will report a soft lockup if the time of loading device driver longer than 10s. to solve this issue, you have to modify a1200p.c, add a 10s delay loop before the driver init the module registers, the function is wctdm_hardware_init
static int wctdm_hardware_init(struct wctdm *wc)
{
/* Hardware stuff */
unsigned char ver;
unsigned char x,y;
int failed;
//long origjiffies; //ml.
/* Signal Reset */
//printk("before raise reset\n");
outb(0x01, wc->ioaddr + WC_CNTL);
/* Wait for 2 second */
/*
origjiffies = jiffies;
while(1)
{
if ((jiffies - origjiffies) >= (HZ*5))
break;;
}
printk("after raise reset\n");*/
open the loop after Wait for 2 second, and try to modify the HZ*5 to HZ*10 etc.
15 years 4 months ago #2467
by kerry
Module 5: FAILED FXS (FCC)
the message "failed"!
connect the pstn phone and cann't use.
15 years 4 months ago #2468
by kerry
I changed the HZ*5 to HZ*10 , but the message is still.
Timeout waiting for calibration of module 5
BUG: soft lockup - CPU#0 stuck for 10s! [modprobe]
Pid: 6237, comm: modprobe
EIP: 0060:[<c0609a50>] CPU: 0
EIP is at _spin_unlock_irqrestore+0x8/0x9
EFLAGS: 00000286 Tainted: G (2.6.18-92.1.18.el5 #1)
EAX: f41e8210 EBX: f41e801f ECX: 00000286 EDX: 00000200
ESI: 00000286 EDI: f41e8210 EBP: 00000060 DS: 007b ES: 007b
CR0: 8005003b CR2: 006544a0 CR3: 33eee000 CR4: 000006d0
[<f8ca0c1f>] wctdm_getreg+0x37/0x42 [opvxa1200]
[<f8ca0e57>] wctdm_proslic_calibrate+0x5b/0xa1 [opvxa1200]
[<f8ca156a>] wctdm_init_proslic+0x30d/0x89b [opvxa1200]
[<c042651e>] vprintk+0x1e9/0x2b1
[<f8ca1cae>] wctdm_hardware_init+0x1b6/0xa07 [opvxa1200]
[<f8ca3293>] wctdm_init_one+0x58d/0x7aa [opvxa1200]
[<c054e025>] __driver_attach+0x0/0x6b
[<c04eef40>] pci_device_probe+0x36/0x57
[<c054df78>] driver_probe_device+0x42/0x92
[<c054e069>] __driver_attach+0x44/0x6b
[<c054da76>] bus_for_each_dev+0x37/0x59
[<c054dee2>] driver_attach+0x11/0x13
[<c054e025>] __driver_attach+0x0/0x6b
[<c054d77e>] bus_add_driver+0x64/0xfd
[<c04ef065>] __pci_register_driver+0x3e/0x58
[<f88c40af>] wctdm_init+0xaf/0xd7 [opvxa1200]
[<c0430cff>] blocking_notifier_call_chain+0x23/0x29
[<c043e569>] sys_init_module+0x18b5/0x1a60
[<c042ac34>] __request_region+0x0/0xb0
[<c044b1e5>] audit_syscall_entry+0x14b/0x17d
[<c0404eff>] syscall_call+0x7/0xb
=======================
Timeout waiting for calibration of module 5
Proslic Failed on Second Attempt to Auto Calibrate
Init ProSlic with Manual Calibration
Proslic Failed on Second Attempt to Calibrate Manually. (Try -DNO_CALIBRATION in Makefile)
Module 5: FAILED FXS (FCC)
and the module 5 failed is still.
15 years 4 months ago #2469
by miaolin
/*
origjiffies = jiffies;
while(1)
{
if ((jiffies - origjiffies) >= (HZ*5))
break;;
}
printk("after raise reset\n");*/
this code were comment outed, have you deleted the /* and */ as following?
origjiffies = jiffies;
while(1)
{
if ((jiffies - origjiffies) >= (HZ*5))
break;;
}
printk("after raise reset\n");
15 years 4 months ago #2471
by kerry
changed it , but make is error:
/usr/src/zaptel-1.4.12.1/kernel/opvxa1200.c: In function wctdm_hardware_init:
/usr/src/zaptel-1.4.12.1/kernel/opvxa1200.c:2476: error: origjiffies undeclared (first use in this function)
/usr/src/zaptel-1.4.12.1/kernel/opvxa1200.c:2476: error: (Each undeclared identifier is reported only once
/usr/src/zaptel-1.4.12.1/kernel/opvxa1200.c:2476: error: for each function it appears in.)
make[3]: *** [/usr/src/zaptel-1.4.12.1/kernel/opvxa1200.o] Error 1
make[2]: *** [_module_/usr/src/zaptel-1.4.12.1/kernel] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-92.1.18.el5-i686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1'
make: *** [all] Error 2
Forum
Telephony Cards Support
A400/800/1200 Series
opvxa1200 driver problem
Time to create page: 0.037 seconds